package com.efast.dmom.mgmt.dao.mes.qm;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.efast.dmom.mgmt.bean.mes.qm.QMCheckDefectSaveBean;
import com.efast.dmom.mgmt.bean.mes.qm.QMRepairRecordSaveBean;
import com.efast.dmom.mgmt.bean.mes.qm.RepairConsumptionSaveBean;
import com.efast.dmom.mgmt.entity.master.TrBasBomItem;
import com.efast.dmom.mgmt.entity.mes.TwBasLotConsumpation;

public interface QMDefectRepairDao {

	public List<RepairConsumptionSaveBean> getConsumptionListByVin(@Param(value = "vin") String vin,@Param(value = "part") String part);
	/**
	 * 新增一条缺陷
	 * */
	public void addConsumpation (TwBasLotConsumpation twBasLotConsumpation);
	public void updateConsumptionSn(List<QMRepairRecordSaveBean> list);
	/**
	 * 批量更新物料消耗表记录
	 * */
	public void updateConsumpationReplace (List<QMRepairRecordSaveBean> list);
	
	public void closeRepairDefect(QMCheckDefectSaveBean saveBean);
	
	// 通过零件名称查询bom中的关键件
	public List<RepairConsumptionSaveBean> selectBomItemBypartNoversion(@Param(value = "lotName")String lotName, @Param(value = "part")String part);
}
